<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主轴方向 换行 主轴方向与换行的简写</title>
    <style>
        .box1 {
            background-color: yellow;
        }
        .box1>div {
            width: 100px;
            height: 100px;
            border: 2px solid #000;
            font-size: 30px;
        }
        .box2 {
            background-color: aqua;
            /* 指定box2作为弹性布局 */
            /* 效果：子元素一横排，不用我们自己浮动 清除浮动 */
            /* 想让谁里面的元素横向排列，就给谁设置此属性，也就是给爸爸 */
            display: flex;
            flex-direction: row;
            flex-direction: column;
            flex-direction: column-reverse;
            flex-direction: row-reverse;
        }
        .box2>div {
            width: 120px;
            height: 120px;
            border: 2px solid #0f0;
        }
    </style>
</head>
<body>
    <div class="box1">
        <div>a</div>
        <div>b</div>
        <div>c</div>
     </div>
     <div class="box2">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
        <div>7</div>
     </div>
</body>
</html>